package org.flowers.unbeaten.generator.configuration;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @description 数据库配置类
 * @author RyanWang
 * @date 2021-08-13 14:55:31
 * @version 1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "spring.datasource")
public class DatabaseConfiguration {

    /**
     * 数据库驱动
     */
    private String driverClassName;

    /**
     * 连接账号
     */
    private String userName;

    /**
     * 连接密码
     */
    private String password;

    /**
     * JDBC url
     */
    private String url;

}
